import request from '@/utils/request';

// 获取每日收入
export function getDailyRevenue() {
  return request({
    url: '/restaurant/statistics/dailyRevenue',
    method: 'get'
  });
}

// 获取每个菜品的采购量统计
export function getDishPurchaseStats() {
  return request({
    url: '/restaurant/statistics/procurementVolume',
    method: 'get'
  });
}

// 获取菜品订单排名
export function getDishOrderRanking() {
  return request({
    url: '/restaurant/statistics/dishRanking',
    method: 'get'
  });
}

  // 获取菜品库存
export function getDishStock() {
    return request({
      url: '/restaurant/statistics/dishStock',
      method: 'get'
    });
}
